package textExcel;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateCell extends Cell
{
    /**
     * precondition: date != null
     * 
     * @param date
     */
    public DateCell(Date date)
    {

    }

    public String toString()
    {
        return null;
    }

    /**
     * TODO: note that method returns null if dateAsString is not in correct
     * format
     * 
     * @param dateAsString
     * @return
     */
    public static Date getDate(String dateAsString)
    {
    	return null;
    	
    	/*
        String string = "01/02/2010";
        SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
        
        try
        {
            return dateFormat.parse(string); // TODO: problem description says this returns null on fail, not throws exception
        }
        catch (ParseException e)
        {
           return null; 
        }
        */
    }
}
